package com.service;

import com.dao.BookRecommendDao;
import com.dto.BookDTO;
import com.dto.BookRecommendDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author linyukun
 * @date 2022/8/1 18:07
 */
@Service
public class BookRecommendServiceImpl {
    @Autowired
    private BookRecommendDao bookRecommendDao;

    //获取图书推荐列表
    public Object getBookRecommendList() {
        return bookRecommendDao.getBookRecommendList();
    }

    //添加推荐图书
    public Object addBookRecommend(BookRecommendDTO dto) {
        return bookRecommendDao.addBookRecommend(dto);
    }

    public Object deleteBookRecommendById(BookRecommendDTO dto) {
        return bookRecommendDao.deleteBookRecommendById(dto);
    }
}
